package com.liusu.spider.bean;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;


@Data
public class Person {

    private Integer id;
    private String name;
    private String site;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date register;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birth;
    @JSONField(name = "addr")
    private String address;
    @JSONField(serialize = false)
    private String password;

    public Person(Integer id, String name, String site, Date register, LocalDateTime birth, String address, String password) {
        this.id = id;
        this.name = name;
        this.site = site;
        this.register = register;
        this.birth = birth;
        this.address = address;
        this.password = password;
    }
}
